package com.fc.mall.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

@Data
public class OmsBargain implements Serializable {
    private Long id;

    /**
     * 砍价商品ID
     *
     * @mbggenerated
     */
    private Long productBargainId;

    /**
     * 砍价商品ID
     *
     * @mbggenerated
     */
    private Long productId;

    /**
     * 产品名称
     *
     * @mbggenerated
     */
    private String productName;

    /**
     * 产品图片
     *
     * @mbggenerated
     */
    private String pic;

    /**
     * 砍价商品发起的用户ID
     *
     * @mbggenerated
     */
    private Integer ownerId;

    /**
     * 昵称
     *
     * @mbggenerated
     */
    private String nickname;

    /**
     * 头像
     *
     * @mbggenerated
     */
    private String icon;

    /**
     * 被砍价次数
     *
     * @mbggenerated
     */
    private Integer bargainCount;

    /**
     * 是否下单(0:未下单，1已下单)
     *
     * @mbggenerated
     */
    private Integer isAddorder;

    /**
     * 最终交易价格
     *
     * @mbggenerated
     */
    private BigDecimal dealMoney;

    /**
     * 发起时间
     *
     * @mbggenerated
     */
    private Date createTime;

    /**
     * 结束时间
     *
     * @mbggenerated
     */
    private Date expiredTime;

    private Long skuId;

    private Integer quantity;

    private String sp1;

    private String sp2;

    private BigDecimal originalMoney;


    private Long orderId;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productBargainId=").append(productBargainId);
        sb.append(", productId=").append(productId);
        sb.append(", productName=").append(productName);
        sb.append(", pic=").append(pic);
        sb.append(", ownerId=").append(ownerId);
        sb.append(", nickname=").append(nickname);
        sb.append(", icon=").append(icon);
        sb.append(", bargainCount=").append(bargainCount);
        sb.append(", isAddorder=").append(isAddorder);
        sb.append(", dealMoney=").append(dealMoney);
        sb.append(", createTime=").append(createTime);
        sb.append(", expiredTime=").append(expiredTime);
        sb.append(", skuId=").append(skuId);
        sb.append(", quantity=").append(quantity);
        sb.append(", sp1=").append(sp1);
        sb.append(", sp2=").append(sp2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}